

public class test {
    public static void main(String[] args){
        System.out.println("hello world");

        int num[]={1, -2, 3, 5, -1};
       sum s=new sum();
       System.out.println(s.sumand(num));


       int n=20000;
        int nums=1;
        int i=0;
        int count=0;

        for(i=2;i<=n;i++) {
           boolean flag=true;
            for(int j=2;j<=i/2;j++) {
                if(i%j==0) {
                    flag=false;
                    break;
                }
            }
            if(flag) {
                count++;
                if(count%5==0) {
                    System.out.println(i);
                }else {
                    System.out.print(i+" ");
                }

            }

        }

    }

}




